package com.jin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jin.bean.TruckRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created on 2024/6/5.
 *
 * @author Zhongyuan Jin
 */
public interface TruckRecordMapper extends BaseMapper<TruckRecord> {
  Page<TruckRecord> getTruckRecordsByConditions(
          Page<TruckRecord> page,  // 分页参数必须放在第一位
          @Param("gate_name") String gate_name,
          @Param("plate") String plate,
          @Param("unit_name") String unit_name,
          @Param("startTime") Date startTime,
          @Param("endTime") Date endTime);
  List<TruckRecord> selectTruckRecordsByConditionsForExport(
          @Param("gate_name") String gate_name,
          @Param("plate") String plate,
          @Param("unit_name") String unit_name,
          @Param("startTime") Date startTime,
          @Param("endTime") Date endTime);
}
